unit untExcecao;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ComCtrls, ExtCtrls, VarGlobais;

type
  TfrmExcecao = class(TForm)
    Panel1: TPanel;
    btnOK: TButton;
    memoErro: TMemo;
    procedure btnOKClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
    constructor Create(msgErro : String);
  end;

var
  frmExcecao: TfrmExcecao;

implementation

{$R *.dfm}

procedure TfrmExcecao.btnOKClick(Sender: TObject);
begin
  Close();
end;

constructor TfrmExcecao.Create(msgErro:String);
begin
  inherited
  Create(nil);
  memoErro.Text := '';
  memoErro.Text := msgErro;
end;

end.
